home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / sw / extern.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.5 KB  |  47 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef EXTERN_H
  18. #define    EXTERN_H
  19.  
  20. #include <Inventor/nodes/SoPerspectiveCamera.h>
  21. #include <Inventor/nodes/SoSeparator.h>
  22. #include <Inventor/nodes/SoTranslation.h>
  23. #include <Inventor/SoXt.h>
  24. #include <Inventor/SoXtRenderArea.h>
  25. class ShipObject;
  26.  
  27. // display.c++
  28. extern Display*        display;        // X display
  29. extern Widget        mainWindow;        // top-level shell widget
  30. extern SoXtRenderArea*    view;            // view screen
  31.  
  32. // main.c++
  33. extern int        buttonPressed[3];    // mouse button states
  34. extern int        frameNumber;
  35. extern int        frameDrawn;
  36.  
  37. // ship.c++
  38. extern ShipObject*    myShip;            // pointer to my ship
  39.  
  40. // universe.c++
  41. extern SoSeparator*        universe;    // universe database
  42. extern SoPerspectiveCamera*    camera;        // ship's camera
  43. extern SoTranslation*        position;    // camera position
  44. extern SoSeparator*        ships;        // all ships under here
  45.  
  46. #endif
  47.